<template>
  <div class="commonArchiveImage">
    <div class="c-a-top">
      <div class="t-left">{{ commonTitle }}</div>
      <div v-if="isInput" class="t-right">
        <div class="num-times">
          <div class="n-t-Label">请输入同行次数</div>
          <el-input placeholder="请输入内容" v-model="numTimes" clearable size="medium" class="t-r-input"> </el-input>
        </div>
        <div class="seconds">
          <div class="n-t-Label">请输入同行次数</div>
          <el-input placeholder="请输入内容" v-model="seconds" clearable size="medium" class="t-r-input"> </el-input>
        </div>
      </div>
    </div>
    <div class="c-a-bottom">
      <div class="b-left">
        <div class="common-arrow" @click="leftArrowClick">
          <img src="@/assets/images/investigateBusiness/left-arrow.png" />
        </div>
      </div>
      <div class="b-middle">
        <div v-for="(item, index) in imageList" :key="index" class="b-m-image">
          <img :src="item.url" />
        </div>
      </div>
      <div class="b-right">
        <div class="common-arrow" @click="rightArrowClick">
          <img src="@/assets/images/investigateBusiness/right-arrow.png" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "commonArchiveImage",
  props: {
    commonTitle: {
      type: String,
      default: "相似档案图片"
    },
    isInput: {
      type: Boolean,
      default: true
    },
    imageList: {
      type: Array,
      default: () => [
        // { id: 1, url: require("@/assets/images/investigateBusiness/bg-person-logo.png") },
        // { id: 2, url: require("@/assets/images/investigateBusiness/bg-person-logo.png") },
        // { id: 3, url: require("@/assets/images/investigateBusiness/bg-person-logo.png") },
        // { id: 4, url: require("@/assets/images/investigateBusiness/bg-person-logo.png") },
        // { id: 5, url: require("@/assets/images/investigateBusiness/bg-person-logo.png") },
        // { id: 6, url: require("@/assets/images/investigateBusiness/bg-person-logo.png") },
        // { id: 7, url: require("@/assets/images/investigateBusiness/bg-person-logo.png") },
        // { id: 8, url: require("@/assets/images/investigateBusiness/bg-person-logo.png") },
        // { id: 9, url: require("@/assets/images/investigateBusiness/bg-person-logo.png") },
        // { id: 10, url: require("@/assets/images/investigateBusiness/bg-person-logo.png") },
        // { id: 11, url: require("@/assets/images/investigateBusiness/bg-person-logo.png") }
      ]
    }
  },
  components: {},
  computed: {},
  created() {},
  mounted() {},
  watch: {},
  data() {
    return {
      numTimes: 1,
      seconds: 5
    }
  },
  methods: {
    leftArrowClick() {
      this.$emit("leftArrowClick")
    },
    rightArrowClick() {
      this.$emit("rightArrowClick")
    }
  }
}
</script>

<style scoped lang="scss">
.commonArchiveImage {
  .c-a-top {
    height: 40px;
    display: flex;
    justify-content: space-between;
    .t-left {
      width: 189px;
      height: 40px;
      line-height: 40px;
      text-align: center;
      background-image: url("@/assets/images/investigateBusiness/analysis-rectangle.png");
      background-size: 100% 100%;
      background-repeat: no-repeat;
      font-family: "Microsoft YaHei";
      font-size: 16px;
      font-weight: bold;
      font-variation-settings: "opsz" auto;
      color: rgba(255, 255, 255, 0.9);
    }
    .t-right {
      display: flex;
      .num-times,
      .seconds {
        margin-left: 30px;
        width: 206px;
        height: 35px;
        display: flex;
        position: relative;
        .n-t-Label {
          width: 128px;
          height: 36px;
          border-radius: 6px;
          background: #1f2935;
          font-family: "Poppins";
          font-size: 14px;
          font-weight: normal;
          line-height: 36px;
          text-align: center;
          color: #ffffff;
          position: absolute;
          top: 0;
          left: 0;
          z-index: 2;
        }
        .el-input {
          // margin-left: -2px;
          width: 85px;
          position: absolute;
          top: 0;
          right: 0;
          z-index: 1;
        }
      }
    }
  }
  .c-a-bottom {
    margin-top: 2px;
    width: 100%;
    height: 144px;
    background-image: url("@/assets/images/investigateBusiness/analysis-img-bottom.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    .b-left,
    .b-right {
      width: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      .common-arrow {
        width: 24px;
        height: 24px;
        line-height: 24px;
        cursor: pointer;
      }
    }
    .b-middle {
      flex: 1;
      width: 1110px;
      overflow: hidden;
      display: flex;
      align-items: center;
      .b-m-image {
        width: 82px;
        height: 82px;
        margin-left: 22px;
        &:first-child {
          margin-left: 0px;
        }
      }
    }
  }
}
::v-deep {
  .t-r-input .el-input__inner {
    text-align: center;
    background-color: #0e9cff;
    color: #ffffff;
  }
}
</style>
